package cn.iocoder.yudao.module.system.controller.admin.mini.orderInfo.back.dal.dataobject.back;

import cn.iocoder.yudao.module.system.controller.admin.mini.orderInfo.order.controller.admin.order.vo.OrderGood;
import cn.iocoder.yudao.module.system.controller.admin.mini.orderInfo.order.controller.admin.order.vo.OrderLogistic;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.*;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;

/**
 * 退换货
 */
@Data
@TableName(value = "qd_back",autoResultMap = true)
public class BackDO extends BaseDO {

    /**
     * id主键
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    //退库说明
    private String content;
    //图片s
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private List<String> urls;
    //退库价格
    private BigDecimal price;
    //原因
    private String title;
    //类型  1退货2换货
    private Integer type;
    //审核状态 1待审核2通过3未通过
    private Integer status;
    //商家确认状态 1待确认2确认3驳回
    private Integer confirmStatus;
    //编号
    private String code;
    //商品s
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private List<OrderGood> goods;
    //订单id
    private Integer orderId;
    //发货物流
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private OrderLogistic logistic;
    //发货物流时间
    private LocalDateTime logisTime;
    //商家发货物流
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private OrderLogistic businLogistic;
    //商家发货物流时间
    private LocalDateTime businTime;
    //退货状态 1商家待审核2申请审核失败3用户待发货4用户发货中5退款已完成6退款驳回7商家退回货物
    private Integer refundStatus;

    //订单当时状态  1: '代付款', 2:'待发货' ,3: '待收货' ,4: '已完成' ,5:'退款售后'
    private Integer orderStatus;
    //退钱状态 1成功2失败
    private Integer payStatus;
    //订单编号
    @TableField(exist = false)
    private String orderCode;

}
